package cn.diancan.model.types;

public enum ApplySexType {
    
    
    
    MAN(1,"男"),
     
    WOMAN(0,"女"),
    
    ALL(2,"全部");
    
    private ApplySexType(Integer type,String typeName){
	this.type = type; 
	this.typeName=typeName;
    }
    
    public static boolean checkExists(Integer type){
	if(null==type){
	    return false;
	}
	ApplySexType enums[] =ApplySexType.values();
	for (int i = 0; i < enums.length; i++) {
	    ApplySexType singleEnum=  enums[i]; 
	    if(singleEnum.getType().equals(type)){
		return true;
	    }
	}
	return false;
    }
    
    private Integer type;
    private String typeName;
    public Integer getType() {
        return type;
    }
    public String getTypeName() {
        return typeName;
    }
}
